﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Rss_1._1._0.Model;
using System.ComponentModel;
namespace Rss_1._1._0.ViewModel
{
    class MainViewModel : INotifyPropertyChanged
    {
        private Rss rss;
        public Rss CurrentRss
        {

            get { return rss; }
            set
            {
                this.rss = value;
                NotifyPropertyChanged("CurrentRss");
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;

        private void NotifyPropertyChanged(string property)
        {
            if (PropertyChanged != null)
            {

                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }

        }
    }
}
